package com.liang.design.event.listener;

import com.liang.design.LotteryResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author lsm
 * @ClassName MessageEventListener.java
 * @Description 短信监听
 * @createTime 2023年12月05日 20:19:00
 */
public class MessageEventListener implements EventListener{
    private Logger logger = LoggerFactory.getLogger(MessageEventListener.class);
    @Override
    public void doEvent(LotteryResult result) {
        logger.info("给⽤用户 {} 发送短信通知(短信)： {}", result.getUId(),
                result.getMsg());
    }
}
